<template>
	<view class="content">
		<image class="logo" mode="aspectFit" src="/static/logo.png"></image>

		<u-divider text="页面跳转"></u-divider>
		<view>
			<view style="margin: 10px;width: 100px;display: inline-block;">
				<u-button plain @click="toLogin" type="success">去登录</u-button>
			</view>
			<view style="margin: 10px;width: 100px;display: inline-block;">
				<u-button plain @click="toRegister" type="info">去注册</u-button>
			</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			toLogin() {
				uni.navigateTo({
					url: "/pages/login/login"
				})
			},
			toRegister() {
				uni.navigateTo({
					url: "/pages/register/register"
				})
			},
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		/* height: 350rpx; */
		width: 350rpx;
		margin-top: 100px;
		margin-left: auto;
		margin-right: auto;

	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36px;
		color: #8f8f94;
	}
</style>
